package com.shop.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.mall.common.Result;
import com.shop.mall.entity.Admin;

import java.util.List;

/**
 * <p>
 * 商家 服务类
 * </p>
 *
 */
public interface AdminService extends IService<Admin> {
    Admin findByLoginName(String loginName);

    Admin getAdminById(int id);

    List<Admin> getAdminList();

    IPage<Admin> pageList(int pageSize, int currentPage, String name);

    Result<String> add(Admin Admin);

    boolean updateAdmin(Admin Admin);

    boolean deleteById(int id);
}
